﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Furion.DatabaseAccessor;
using Furion.Logging;

namespace Project1.Core
{
    public class DatabaseLoggingWriter : IDatabaseLoggingWriter
    {
        private readonly IRepository<SysLog> _logs;

        public DatabaseLoggingWriter(IRepository<SysLog> logRepository)
        {
            _logs = logRepository;

        }

        public void Write(LogMessage logMsg, bool flush)
        {
            _logs.Find();
            // _logRepository.Insert(.....);
        }


    }
}
